home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 05.zip
/
BS1 part 5
/
SASC_6.0_Disk_4.adf
/
Compiler_Headers
/
Include
/
dos
/
stdio.h
< prev
next >
Wrap
C/C++ Source or Header
|
1992-07-30
|
886b
|
35 lines
#ifndef DOS_STDIO_H
#define DOS_STDIO_H
/*
**
** $Filename: dos/stdio.h $
** $Release: 2.04 Includes, V37.4 $
** $Revision: 36.6 $
** $Date: 91/11/01 $
**
** ANSI-like stdio defines for dos buffered I/O
**
** (C) Copyright 1989-1991 Commodore-Amiga, Inc.
** All Rights Reserved
**
*/
#define ReadChar() FGetC(Input())
#define WriteChar(c) FPutC(Output(),(c))
#define UnReadChar(c) UnGetC(Input(),(c))
/* next one is inefficient */
#define ReadChars(buf,num) FRead(Input(),(buf),1,(num))
#define ReadLn(buf,len) FGets(Input(),(buf),(len))
#define WriteStr(s) FPuts(Output(),(s))
#define VWritef(format,argv) VFWritef(Output(),(format),(argv))
/* types for SetVBuf */
#define BUF_LINE 0 /* flush on \n, etc */
#define BUF_FULL 1 /* never flush except when needed */
#define BUF_NONE 2 /* no buffering */
/* EOF return value */
#define ENDSTREAMCH -1
#endif /* DOS_STDIO_H */